package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.QuestionDaoIF;
import de.hhbk.feedbackmodul.entities.Question;
import de.hhbk.feedbackmodul.remoteInterfaces.QuestionRemoteIF;

@Stateless
public class QuestionSessionBean implements QuestionRemoteIF {

	@EJB
	private QuestionDaoIF dao;
	
	@Override
	public List<Question> getAllQuestions() throws Exception {
		return dao.getAllQuestions();
	}

	@Override
	public void createQuestion(Question question) throws Exception {
		dao.createQuestion(question);

	}

	@Override
	public void updateQuestion(Question question) throws Exception {
		dao.updateQuestion(question);

	}

	@Override
	public void deleteQuestion(Question question) throws Exception {
		dao.deleteQuestion(question);
		
	}

}
